package com.grape.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

import java.util.Date;

@Data
@Builder
public class UserDetailDTO {

    /** 用户id */
    @ApiModelProperty(value = "用户id")
    private String id;

    /** 用户名 */
    @ApiModelProperty(value = "用户名")
    private String username;

    /** 唯一id */
    @ApiModelProperty(value = "唯一id")
    private String uniqueId;

    /** 记账天数 */
    @ApiModelProperty(value = "记账天数")
    private Integer bookkeepingNumber;

    /** 连续记账天数 */
    @ApiModelProperty(value = "连续记账天数")
    private Integer bookkeepingDay;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "头像")
    private String avatar;
}
